package com.itheima.reggie.common;

import com.itheima.reggie.domain.Employee;

public class EmployeeHolder {

    private static final ThreadLocal<Employee> tla=new ThreadLocal<>();

    public static void set(Employee employee){
        tla.set(employee);
    }

    public static Employee get(){
       return tla.get();
    }

    public static void remove(){
        tla.remove();
    }
}
